package lab.gene.history.action;

import java.util.List;

import lab.gene.pojo.GeneAmpliconPurification;
import lab.gene.service.impl.GeneAmpliconPurificationServiceImpl;

import com.opensymphony.xwork2.ActionSupport;

public class ViewAmpliconPurificationHistoryAction extends ActionSupport {
	
	private static final long serialVersionUID = 1L;
	private List<GeneAmpliconPurification> historyList = null;
	private String geneName = null;
	private String ampType = null;
	private String stepType = null;
	
	public String execute() {
		GeneAmpliconPurificationServiceImpl service = new GeneAmpliconPurificationServiceImpl();
		historyList = service.getGeneAmpliconPurificationHistory(geneName, stepType, ampType);
		return "success";
	}

	public List<GeneAmpliconPurification> getHistoryList() {
		return historyList;
	}

	public void setHistoryList(List<GeneAmpliconPurification> historyList) {
		this.historyList = historyList;
	}

	public String getGeneName() {
		return geneName;
	}

	public void setGeneName(String geneName) {
		this.geneName = geneName;
	}

	public String getAmpType() {
		return ampType;
	}

	public void setAmpType(String ampType) {
		this.ampType = ampType;
	}

	public String getStepType() {
		return stepType;
	}

	public void setStepType(String stepType) {
		this.stepType = stepType;
	}

}
